package com.example.demo.mapper.tovip;

import java.util.List;

import com.example.demo.domain.tovip.Tovip;

public interface TovipMapper {
    int deleteByPrimaryKey(Integer tovipId);

    int insert(Tovip record);

    int insertSelective(Tovip record);

    Tovip selectByPrimaryKey(Integer tovipId);

    int updateByPrimaryKeySelective(Tovip record);

    int updateByPrimaryKey(Tovip record);
    
	// 以下是新增的方法
	
	//通用查询方法
	List<Tovip> selectTovipList(Tovip tovip);
	
	//删除方法，支持批量删除
     int deleteTovipByIds(String[] tovipIds);
     
     List<Tovip> selectTovipName();
     List<Tovip> selectTovipDisc();
     
     
     int selectCountByTovipId(Integer id);



     public Tovip checkTovipNameUnique(String tovipName);
}